package cn.wxManage.shop.controller;

import cn.common.common.model.ServerResponse;
import cn.wxManage.shop.service.INoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/shopNotice")
@Api(value="广播广告方法",description = "广播广告方法")
public class NoticeController {
    @Autowired
    INoticeService iNoticeService;

    @ApiOperation(value="获取当前广播广告", notes="获取当前广播广告",produces = "application/json")
    @GetMapping(value = "/getNoticeList")
    public ServerResponse<?> getNoticeList(){
        return iNoticeService.getNoticeList();
    }
}